package com.ezjie.ielts.task;

import java.util.HashMap;
import java.util.Map;

import com.ezjie.ielts.core.http.HttpAPI;
import com.ezjie.ielts.core.http.HttpRequestCallBack;
import com.ezjie.ielts.core.http.ServerInterfaceDefinition;

import android.content.Context;

public class HomeTask {

	private Context context;

	public HomeTask(Context context) {
		this.context = context;
	}
	/**
	 * 首页赞
	 * @param httpRequestCallBack
	 */
	public void homeZan(HttpRequestCallBack httpRequestCallBack){
		Map<String, String> params = new HashMap<String, String>();
		
		HttpAPI.getInstance(context).doPostRequest(
				ServerInterfaceDefinition.OPT_HOME_DAILY, params,
				httpRequestCallBack);
	}
	/**
	 * 首页数据
	 * @param httpRequestCallBack
	 */
	public void homeData(HttpRequestCallBack httpRequestCallBack){
		Map<String, String> params = new HashMap<String, String>();
		
		HttpAPI.getInstance(context).doGetRequest(
				ServerInterfaceDefinition.OPT_HOME_HOME, params,
				httpRequestCallBack);
	}
}
